import request from '@/utils/request'

// 查询佣金管理列表
// export function listCommmision(query) {
//   return request({
//     url: '/house_sale/Commmision/list',
//     method: 'get',
//     params: query
//   })
// }
export function listCommmision(buyid) {
  return request({
    url: '/house_sale/Commmision/list1/'+buyid,
    method: 'get',
  })
}
// 查询佣金管理详细
export function getCommmision(commisionid) {
  return request({
    url: '/house_sale/Commmision/' + commisionid,
    method: 'get'
  })
}

// 新增佣金管理
export function addCommmision(data) {
  return request({
    url: '/house_sale/Commmision',
    method: 'post',
    data: data
  })
}

// 修改佣金管理
export function updateCommmision(data) {
  return request({
    url: '/house_sale/Commmision',
    method: 'put',
    data: data
  })
}

// 删除佣金管理
export function delCommmision(commisionid) {
  return request({
    url: '/house_sale/Commmision/' + commisionid,
    method: 'delete'
  })
}
export function selectCommmision(buyid) {
  return request({
    url: '/house_sale/Commmision/selectCommmision/' + buyid,
    method: 'get'
  })
}
//作废
export function beInvalid(form2){
  return request({
    url: '/house_sale/Commmision/invalid',
    method: 'put',
    data: form2
  })
}
export function updmoney(commisionid){
  return request({
    url: '/house_sale/Commmision/updmoney/'+commisionid,
    method: 'get'
  })
}

